package com.hyq.adapter;

import java.util.List;

/**
* @ClassName: Client 
* @Description: 客户端
* @author Janus
 */
public class Client {
	public static void main(String[] args) {
		/*
		 * 外包公司用户接口
		 */
		OuterUserBase userBase=new OuterUserBase();
		OuterUserHome userHome=new OuterUserHome();
		/*
		 * 转换成甲方公司的接口 
		 */
		UserInfo outerUser = new OuterUserInfo(userBase, userHome);
		//输出姓名
		System.out.println(outerUser.getName());
		//输出性别
		System.out.println(outerUser.getSex());
		
		List<String> addressList = outerUser.getAddress();
		//输出地址
		for (String address : addressList) {
			System.out.println(address);
		}
	}
}
